<%@ include file="/WEB-INF/jsp/header.jsp" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

    <c:if test="${not empty error}">
        <div class="errorblock">
            Your login attempt was not successful, try again.<br /> Caused :
            ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
        </div>
    </c:if>

    <form class="form-horizontal" name='f' action="<c:url value='j_spring_security_check' />" method='POST'>
        <div class="control-group">
            <label class="control-label" for="inputUsername"><spring:message code="form.username" />:</label>
            <div class="controls">
                <input type="text" name='j_username' id="inputUsername" placeholder="<spring:message code="form.username" />">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputPassword"><spring:message code="form.password" />:</label>
            <div class="controls">
                <input type="password" name='j_password' id="inputPassword" placeholder="<spring:message code="form.password" />">
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox"> <spring:message code="form.remember" />
                </label>
                <input class="myBtn" name="submit" type="submit" value="<spring:message code="form.submit" />" />
                <input class="myBtn" name="reset" type="reset" value="<spring:message code="form.reset" />"/>
            </div>
        </div>
    </form>

<%@ include file="/WEB-INF/jsp/footer.jsp" %>